<?php

namespace app\model;

use think\Model;

class Menu extends Model
{
    protected $pk = 'menu_id';
    public function getMenuStatusTextAttr($value, $data)
    {
        $status = [-1 => '删除' ,0 => '隐藏', 1 => '显示'];
        return $status[$data['menu_status']];
    }
}